package com.shmn.gongjiajumain.dao;

import com.shmn.gongjiajumain.entity.JigFamilyEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 记录工夹具的类别
 * 
 * @author chenshun
 * @email 1005074582@qq.com
 * @date 2023-05-14 16:40:28
 */
@Mapper
public interface JigFamilyDao extends BaseMapper<JigFamilyEntity> {

    @Select("SELECT id FROM jig_family WHERE family LIKE CONCAT('%',#{family},'%')")
    List<Integer> getIdByFam(@Param("family") String family);
}
